Skip to content

replace vault to local#719

Merged
mukundansundar merged 15 commits into
dapr:masterfrom
fackee:issue_secret_example
May 5, 2022
Merged

replace vault to local#719
mukundansundar merged 15 commits into
dapr:masterfrom
fackee:issue_secret_example

Conversation

@fackee

@fackee fackee commented Mar 30, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: zjx244729 zjx244729@alibaba-inc.com

Description

Replace the Secret Store from Hashicorp Vault to Local File

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #667

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
@fackee fackee requested review from a team as code owners March 30, 2022 02:30
zjx244729 added 2 commits March 30, 2022 10:46
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

@mukundansundar mukundansundar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dntbeSris One change ... The vault install is removed from the validate.yaml file.
Because it was removed from build.yaml it is breaking the build.

run: |
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml up -d
docker ps
- name: Install Local Hashicorp Vault using docker-compose

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have the vault install in the build.yaml and remove it from the validate.yaml file ....

@fackee fackee Mar 30, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, and the Integration Test is vault secret. should i fix it ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please @dntbeSris
cc @artursouza

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

zjx244729 added 7 commits March 30, 2022 11:45
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
@fackee fackee force-pushed the issue_secret_example branch from 5c3aaf1 to 0dc3c18 Compare March 31, 2022 06:44

@mukundansundar mukundansundar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the integration tests why have the secrets file be created on the file. I think the test local secrets file can be committed as a file in the components directory itself ...
This is currently causing an issue with other tests also since the component in being loaded in other tests also and it is not finding the secrets file which is only created on the fly for this test ... so dapr initialising is failing because the component is not being loaded ...

Changing it to a file that exists in the components directory from start is fine for integration tests ...

@fackee

fackee commented Apr 2, 2022

Copy link
Copy Markdown
Contributor Author

yep! i create and delete the secret file just in secret test program at first.but it made the other tests failed . because it always load all components . so i created the file earlier. this change in commit 9f21553

@fackee

fackee commented Apr 7, 2022

Copy link
Copy Markdown
Contributor Author

in the integration tests why have the secrets file be created on the file. I think the test local secrets file can be committed as a file in the components directory itself ... This is currently causing an issue with other tests also since the component in being loaded in other tests also and it is not finding the secrets file which is only created on the fly for this test ... so dapr initialising is failing because the component is not being loaded ...

Changing it to a file that exists in the components directory from start is fine for integration tests ...

what should i do next ?

@codecov

codecov Bot commented Apr 20, 2022

Copy link
Copy Markdown

Codecov Report

Merging #719 (0ec78cf) into master (81ebd76) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #719   +/-   ##
=========================================
  Coverage     78.19%   78.19%           
  Complexity     1117     1117           
=========================================
  Files            97       97           
  Lines          3417     3417           
  Branches        399      399           
=========================================
  Hits           2672     2672           
  Misses          547      547           
  Partials        198      198           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65936ee...0ec78cf. Read the comment docs.

@mukundansundar mukundansundar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. @artursouza Please review.

@mukundansundar mukundansundar merged commit e2d4d1e into dapr:master May 5, 2022
artursouza pushed a commit to pkedy/java-sdk that referenced this pull request Jun 22, 2022
* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it dead loop

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

Co-authored-by: zjx244729 <zjx244729@alibaba-inc.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
@yaron2 yaron2 added this to the v1.6 milestone Jul 6, 2022
naah69 pushed a commit to naah69/dapr-java-sdk that referenced this pull request Jul 7, 2022
* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it dead loop

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

Co-authored-by: zjx244729 <zjx244729@alibaba-inc.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: naah69 <nayan3480232@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Hashicorp Vault from Secret Store example

3 participants